<?php
include 'functions.php';
session_start();
function __autoload($className) {
	if(substr($className,-10)=="Controller"){
		include "./Controller/{$className}.php";
	}else{
		include "./Tool/{$className}.class.php";
	}
}
$c = isset($_GET['c']) ? ($_GET['c']) : 'Index';
$c = "{$c}Controller";
$Controller = new $c;
$a = isset($_GET['a']) ? ($_GET['a']) : 'index';
$Controller->$a();
?>